import request from '@/utils/request'

// 查询人工智能实验基本信息列表
export function listExperiment(query) {
  return request({
    url: '/aiexperiments/experiment/list',
    method: 'get',
    params: query
  })
}

// 查询人工智能实验基本信息详细
export function getExperiment(experimentId) {
  return request({
    url: '/aiexperiments/experiment/' + experimentId,
    method: 'get'
  })
}

// 新增人工智能实验基本信息
export function addExperiment(data) {
  return request({
    url: '/aiexperiments/experiment',
    method: 'post',
    data: data
  })
}

// 修改人工智能实验基本信息
export function updateExperiment(data) {
  return request({
    url: '/aiexperiments/experiment',
    method: 'put',
    data: data
  })
}

// 删除人工智能实验基本信息
export function delExperiment(experimentId) {
  return request({
    url: '/aiexperiments/experiment/' + experimentId,
    method: 'delete'
  })
}
